<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\EsProductSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Es Products';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="es-product-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Create Es Product', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'name',
            'spu',
            'template_id',
            'template_no',
            //'product_type',
            //'is_customize',
            //'magento_template_id',
            //'brand',
            //'osku',
            //'main_sku',
            //'oid',
            //'gender',
            //'is_clearance',
            //'support_stock',
            //'short_description',
            //'description',
            //'copyright',
            //'uid',
            //'created_at',
            //'updated_at',
            //'fids',
            //'plating_color',
            //'style',
            //'occasion',
            //'recipient',
            //'gtin',
            //'img_change',
            //'fids_pic',
            //'fids_zip',
            //'status',
            //'review_num',
            //'product_set_number',
            //'qty_ordered',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>


</div>
